projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1082d7c
)
Fix domctl GCC dependency
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 12 Dec 2007 09:54:21 +0000
(09:54 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 12 Dec 2007 09:54:21 +0000
(09:54 +0000)
Compilers other than GCC don't allow zero-sized structs.
Signed-off-by: John Levon <john.levon@sun.com>
xen/include/public/domctl.h
patch
|
blob
|
history
diff --git
a/xen/include/public/domctl.h
b/xen/include/public/domctl.h
index 5d9a44c3ee8a3c4763ed63ffd78dbfb42a4cbcb9..dbd25ce293479115c79fd6bcaefa2dd81364569b 100644
(file)
--- a/
xen/include/public/domctl.h
+++ b/
xen/include/public/domctl.h
@@
-544,8
+544,11
@@
DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_vcpucontext_t);
*/
#define XEN_DOMCTL_set_opt_feature 44
struct xen_domctl_set_opt_feature {
-#if
def __ia64__
+#if
defined(__ia64__)
struct xen_ia64_opt_feature optf;
+#else
+ /* Make struct non-empty: do not depend on this field name! */
+ uint64_t dummy;
#endif
};
typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;